projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b876ea9
)
(xftfont_draw): Pay attention to s->padding_p.
author
Kenichi Handa
<handa@m17n.org>
Mon, 25 Feb 2008 01:43:55 +0000
(
01:43
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Mon, 25 Feb 2008 01:43:55 +0000
(
01:43
+0000)
src/xftfont.c
patch
|
blob
|
history
diff --git
a/src/xftfont.c
b/src/xftfont.c
index 3d854364617c0ead30c02d4e6f0aacb602efe506..55d0b943c13af084425e9668fa7a357b7e6cc1c3 100644
(file)
--- a/
src/xftfont.c
+++ b/
src/xftfont.c
@@
-522,8
+522,13
@@
xftfont_draw (s, from, to, x, y, with_background)
code[i] = ((XCHAR2B_BYTE1 (s->char2b + from + i) << 8)
| XCHAR2B_BYTE2 (s->char2b + from + i));
- XftDrawGlyphs (xft_draw, &fg, xftfont_info->xftfont,
- x, y, code, len);
+ if (s->padding_p)
+ for (i = 0; i < len; i++)
+ XftDrawGlyphs (xft_draw, &fg, xftfont_info->xftfont,
+ x + i, y, code + i, 1);
+ else
+ XftDrawGlyphs (xft_draw, &fg, xftfont_info->xftfont,
+ x, y, code, len);
UNBLOCK_INPUT;
return len;